﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessLayer.Interfaces;
using DataLayer.EF;
using BusinessLayer.Clases_BO;
using EntityLayer;

namespace BusinessLayer.Implementacion
{
    public class FacadeActualizarPrograma : IFacadeActualizarPrograma
    {
        public bool Insertar(T_Programa obj)
        {
            clsT_ProgramaBO negPrograma = new clsT_ProgramaBO();
            return negPrograma.Insertar(obj);
        }

        public bool Modificar(T_Programa obj)
        {
            clsT_ProgramaBO negPrograma = new clsT_ProgramaBO();
            return negPrograma.Modificar(obj);
        }
        public bool Eliminar(T_Programa obj)
        {
            clsT_ProgramaBO negPrograma = new clsT_ProgramaBO();
            return negPrograma.Eliminar(obj);
        }
        public List<T_Programa> listarProgramas()
        {
            clsT_ProgramaBO negPrograma = new clsT_ProgramaBO();
            return negPrograma.listarProgramas();
        }
        public List<T_Programa> listarProgramaxID(string id)
        {
            clsT_ProgramaBO negPrograma = new clsT_ProgramaBO();
            return negPrograma.listarProgramaxID(id);
        }
        public string ObtenerNroProgramaMax()
        {
            clsT_ProgramaBO negPrograma = new clsT_ProgramaBO();
            return negPrograma.ObtenerNroProgramaMax();
        }
    }
}
